package app.controller.prep
{
	import app.DefaultPaths;
	import app.model.proxies.InProxy;
	
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.interfaces.IProxy;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	
	import uk.co.revisual.pivot.proxies.PivotProxy;

	public class PopulatePivotCmd extends SimpleCommand
	{
		override public function execute(note:INotification):void{
			var inProxy:InProxy = InProxy( facade.retrieveProxy( InProxy.NAME ) ),
				pivotProxy:IProxy = PivotProxy( facade.retrieveProxy( PivotProxy.NAME ) );			
			pivotProxy.setData(  new XML( inProxy.getDataAtURL( DefaultPaths.SHELL_PIVOT ) ) );
		}
		
	}
}